Skip to content

Exclude Nones when serializing models#8

Merged
jspahrsummers merged 1 commit intomainfrom
justin/omit-nulls
Oct 3, 2024
Merged

Exclude Nones when serializing models#8
jspahrsummers merged 1 commit intomainfrom
justin/omit-nulls

Conversation

@jspahrsummers
Copy link
Member

@jspahrsummers jspahrsummers commented Oct 2, 2024

We don't have any nulls in the spec, so right now the Python SDK serialization is not spec-compliant. This fixes it by removing all Nones (which become nulls).

Discovered via modelcontextprotocol/typescript-sdk#5.

Depends on

Base automatically changed from justin/ci to main October 3, 2024 10:04
@jspahrsummers jspahrsummers merged commit 33b5a12 into main Oct 3, 2024
@jspahrsummers jspahrsummers deleted the justin/omit-nulls branch October 3, 2024 10:04
ksteiny pushed a commit to ksteiny/python-sdk that referenced this pull request Dec 5, 2025
feat(server): use fastmcp context for injection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants